package com.project.study.farming.base.service;

import com.project.study.farming.base.entity.dto.AuditCropsDto;
import com.project.study.farming.base.entity.dto.AuditMedicineDto;
import com.project.study.farming.base.entity.po.PlantDetailPo;
import org.springframework.web.servlet.ModelAndView;

/**
 * 用户主页业务层接口
 * @since 2020-04-25
 */
public interface MainPageService {

    ModelAndView initUser();

    /**
     * 跳转用户主页
     * @param pageNum 页码
     * @return 主页信息
     */
    ModelAndView searchMain(Integer pageNum);

    ModelAndView auditCrops(AuditCropsDto dto);

    ModelAndView servicePage(Integer pageNum, Integer auditStatus, Integer cropId, Integer type);

    ModelAndView messagePage(Integer pageNum);

    ModelAndView plantPage(Integer pageNum, Integer cropId, Integer plantStatus);

    ModelAndView doPlant(Integer id, Integer pageNum);

    ModelAndView plantDetail(Integer id, Integer pageNum);

    ModelAndView savePlantDetail(PlantDetailPo detailPo);

    ModelAndView controlPage(Integer pageNum, Integer cropId, Integer areaId);

    ModelAndView deleteControl(Integer id, Integer pageNum);

    ModelAndView auditMedicine(Integer id);

    ModelAndView saveAuditMedicine(AuditMedicineDto dto);
}
